#include "loaded_disk.h"

QVector<QString> GetLoadedDisks()
{
    QVector<QString> disks;
    QVector<QStorageInfo> volumes = QStorageInfo::mountedVolumes();
    for (const QStorageInfo &volume : volumes)
    {
        if (volume.isValid() && volume.isReady())
            disks.append(volume.rootPath().left(volume.rootPath().size()-1));
    }
    return disks;
}
